
export interface DataListProps {
  data_from: string;
  data_type: string;
  query: string;
  time_range: string;
  is_before: boolean;
}

// 单条数据的结构
export interface DataItem {
  id: number;
  name: string;
  des: string;
  data_from: string;
  data_type: string;
  uploader: string;
  data_path: string;
  update_time: string;
}

export interface DelDataRequest{
  data_name: string;
  data_path: string;
}

// 单条数据的结构
export interface DataProps {
  data_name: string;
  data_des: string;
  data_from: string;
  data_type: string;
  data_owner: string;
  data_path: string;
}

//端口结构
export interface PortProps {
  server: string;
  port: string;
  name: string;
  des: string;
}

export interface PortResponse {
  state: string;
  msg: string;
  port: PortProps;
}

// 附加信息的结构
export interface AdditionalInfo {
  time: string;
  trace_id: string;
}

// 完整响应的结构
export interface FastResponse<T> {
  code: number;
  msg: string;
  data: T; // 数组类型，包含多个 DataItem
  additional: AdditionalInfo;
}

export interface VersionProps{
  model_name:string;
  model_version:string;
  update_time:string;
  state:string;
}

// 登录
export interface LoginResponse {
  token: string;
  msg: string;
  state: string;
  user:{
    email:string;
    real_name:string;
    role:number;
    password:string;
  }
}

